import axios from 'axios';
import {API_NEW_VERSION, ALL_SERVICE_API} from '../api';

export const getAllOrganizationProfitSummaries = (params) => {
  return axios.get(API_NEW_VERSION + 'organization-profit-summaries-statistics', {params: params});
};

export const getOrganizationProfitSummary = params => {
  return axios.get(API_NEW_VERSION + 'organization-profit-summaries-by', {params: params});
};

export const getTruckLoadOrganizationProfitSummaryList = params => {
  return axios.get(ALL_SERVICE_API + '/truck-load-organization-profit-summaries/vo', {params: params});
};

export const getTruckLoadOrganizationProfitSummarystatics = params => {
  return axios.get(ALL_SERVICE_API + '/truck-load-organization-statics', {params: params});
};

export const getAllOrganizationProfitSummariesByOrganizationIdVo = params => {
  return axios.get(ALL_SERVICE_API + '/truck-load-organization-profit-summaries-by', {params: params});
};
